package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Transactional;
import com.woniuxy.dao.StaffMapper;
import com.woniuxy.pojo.Staff;
import com.woniuxy.service.StaffService;

@Service
@Transactional
public class StaffServiceImpl implements StaffService{

	@Autowired
	private StaffMapper staffMapper;

	@Override
	public List<Staff> getAllStaff(Staff staff) {
		// TODO Auto-generated method stub
		return staffMapper.getAllStaff(staff);
	}

	@Override
	public void delStaffs(Integer[] id) {
		// TODO Auto-generated method stub
		staffMapper.delStaffs(id);
	}

	@Override
	public void saveAddStaff(Staff staff) {
		// TODO Auto-generated method stub
		staffMapper.saveAddStaff(staff);
	}
	
	@Override
	public List<Staff> getStaffById(Integer id,String staff_name,String sex) {
		// TODO Auto-generated method stub
		return staffMapper.getStaffById(id,staff_name,sex);
	}

	@Override
	public Staff getStaffBySid(Integer staffId) {
		return staffMapper.getStaffBySid(staffId);
	}




	@Override
	public Staff getUpdateMess(Integer id) {
		// TODO Auto-generated method stub
		return staffMapper.getUpdateMess(id);
	}




	@Override
	public void saveUpdateStaff(Staff staff) {
		// TODO Auto-generated method stub
		staffMapper.saveUpdateStaff(staff);
	}

	@Override
	public List<Staff> getAllStaff() {
		// TODO Auto-generated method stub
		return staffMapper.getAllStaff();
	}

	@Override
	public Staff getOneStaff(Integer id) {
		// TODO Auto-generated method stub
		return staffMapper.getOneStaff(id);
	}

	@Override
	public List<Staff> getStaffById(Integer id) {
		return null;
	}


}
